/**
 * @description sequelize 同步
 * @author wmcat
 */
const seq = require('./seq')
require('./model/index')


// 测试连接
seq.authenticate().then(() => {
    console.log('auth ok')
}).catch(() => {
    console.log('auth err')
})

// 执行同步
seq.sync({force: true}).then(() => {
    process.exit()
})